{% load static %}

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="{% static 'plugins/bootstrap-3.4.1-dist/css/bootstrap.min.css' %}">

    <style>
        .account {
            width: 400px;
            border: 1px solid #dddddd;
            border-radius: 5px;
            box-shadow: 5px 5px 20px #aaa;


            margin-top: 150px;
            margin-left: auto;
            margin-right: auto;
            padding: 20px 40px;
        }

        .account h2 {
            text-align: center;
            margin-top: 10px;
        }

    </style>

</head>
<body>
<div class="account">
    <h2>修改密码</h2>
    <form method="post">
        {% csrf_token %}
        <div class="form-group">
            <label for="username">旧密码</label>
            {{ form.old_password }}
            <span style="color: red">{{ form.old_password.errors.0 }}</span>
        </div>
        <div class="form-group">
            <label for="username">新密码</label>
            {{ form.new_password }}
            <span style="color: red">{{ form.new_password.errors.0 }}</span>
        </div>

        <div class="form-group">
            <label for="username">确认密码</label>
            {{ form.re_password }}
            <span style="color: red">{{ form.re_password.errors.0 }}</span>
        </div>

        <div class="form-group">
            <button type="submit" class="btn btn-primary" style="margin-left: 65px;width: 200px">确认修改</button>
        </div>
    </form>


</div>


</body>
</html>